/** @file cam-config.h 
 * Enthält die Konfiguration der Kamera
 * 
 * @author Daniel Kummer, Sebastian Kummer
 * @date Donnerstag, Dezember 12, 2007
 * @version 1.0
 */

#ifndef CAMCONFIG_H_
#define CAMCONFIG_H_


/*
 * Kamera Informationen 
 */
#define MAX_WIDTH   752
#define MAX_HEIGHT  480
#define CAM_DEVICE	"/dev/video0"

/*
 * I2C Device (Kameraregister)
 */
#define CAM_I2C_DEVICE	"/dev/i2c-0"
#define CAM_DEV_ID		(0xb8>>1)

/*
 * Register-Nummern
 */
#define REG_CHIP_VERSION 			0	
#define REG_COLUMN_START 			1
#define REG_ROW_START				2
#define REG_WINDOW_HEIGHT			3
#define REG_WINDOW_WIDTH			4
#define REG_HORIZONAL_BLANKING 		5
#define REG_VERTICAL_BLANKING		6
#define REG_CHIP_CONTROL			7
#define REG_SHUTTER_WIDTH_1			8
#define REG_SHUTTER_WIDTH_2			9
#define REG_SHUTTER_WIDTH_CTRL		10
#define REG_TOTAL_SHUTTER_WITH		11
#define REG_RESET					12
#define REG_READ_MODE				13
#define REG_MONITOR_MODE			14
#define REG_PIXEL_OPERATION_MODE	15
#define REG_LED_OUT_CTRL			16
#define REG_ADC_MODE_CONTROL		17
#define REG_VREF_ADC_CONTROL		18
#define REG_V1						19
#define REG_V2						20
#define REG_V3						21
#define REG_V4						22
#define REG_ANALOG_GAIN				23
#define REG_MAX_ANALOG_GAIN			24
#define REG_FRAME_DARK_AVERAGE		25
#define REG_DARK_AVG_THRESHOLDS		26
#define REG_BL_CALIB_CONTROL		27
#define REG_BL_CALIBRATION_VALUE	28
#define REG_BL_CALIB_STEP_SIZE		29
#define REG_ROW_NOISE_CORR_CTRL_1	30
#define REG_ROW_NOISE_CONSTANT		31
#define REG_ROW_NOISE_CORR_CTRL_2	32
#define REG_PIXCLK_FV_LV			33
#define REG_DIGITAL_TEST_PATTERN	34
#define REG_AEC_AGC_DESIRED_BIN		35
#define REG_AEC_UPDATE_FREQUENCY	36
#define REG_AEC_LPF					37
#define REG_AGC_UPDATE_FREQUENCY	38
#define REG_AGC_LPF					39
#define REG_AEC_AGC_ENABLE			40
#define REG_AEC_AGC_PIX_COUNT		41
#define REG_DATA_STREAM_LATENCY		42
#define REG_AGC_GAIN_OUTPUT			43
#define REG_AEC_GAIN_OUTPUT			44
#define REG_AGC_AEC_CURRENT_BIN		45
#define REG_MAXIMUM_SHUTTER_WIDTH	46
#define REG_AGC_AEC_BIN_DIFFERENCE_THRESHOLD	47 
#define REG_FIELD_BLANK				48
#define REG_MON_MODE_CAPTURE_CTRL	49
#define REG_TEMPERATURE				50
#define REG_ANALOG_CONTROLS			51
#define REG_NTSC_FV_LV_CTRL			52
#define REG_NTSC_HORIZ_BLANK_CTRL	53
#define REG_NTSC_VERT_BLANK_CTRL	54
#define REG_BYTEWIESE_ADDR			55
#define REG_REGISTER_LOCK		 	56

#endif /*CAMCONFIG_H_*/
